package model;

public class ShoppingCar {

	private int id;
	private String commodityName;
	private double oldSale;
	private double sale;
	private double zekou;
	private int saleNum=1;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCommodityName() {
		return commodityName;
	}
	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}
	public double getOldSale() {
		return oldSale;
	}
	public void setOldSale(double oldSale) {
		this.oldSale = oldSale;
	}
	public double getSale() {
		return sale;
	}
	public void setSale(double sale) {
		this.sale = sale;
	}
	public double getZekou() {
		return zekou;
	}
	public void setZekou(double zekou) {
		this.zekou = zekou;
	}
	public int getSaleNum() {
		return saleNum;
	}
	public void setSaleNum(int saleNum) {
		this.saleNum = saleNum;
	}
	public ShoppingCar() {
		// TODO Auto-generated constructor stub
	}
	public ShoppingCar(int id, String commodityName, double oldSale,
			double sale, double zekou, int saleNum) {
		this.id = id;
		this.commodityName = commodityName;
		this.oldSale = oldSale;
		this.sale = sale;
		this.zekou = zekou;
		this.saleNum = saleNum;
	}
	public ShoppingCar(String commodityName, double oldSale, double sale,
			double zekou, int saleNum) {
		this.commodityName = commodityName;
		this.oldSale = oldSale;
		this.sale = sale;
		this.zekou = zekou;
		this.saleNum = saleNum;
	}
	
}
